/* 
 * MComboBoxItem.java
 * 本类定义选择菜单项
 */
package org.vacoor.ui.qq.combobox;

import javax.swing.Icon;

/* 
 * Combobox中的条目
 * @author Vacoor
 */
public class QQComItem {

    private Icon icon;
    private String name;
    private String num;

    public QQComItem(String num) {
        this.num = num;
    }

    public QQComItem(Icon icon, String num) {
        this.icon = icon;
        this.num = num;
    }

    public QQComItem(Icon icon, String name, String num) {
        this.icon = icon;
        this.name = name;
        this.num = num;
    }

    public Icon getIcon() {
        return icon;
    }

    public void setIcon(Icon icon) {
        this.icon = icon;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return name+num;
    }
}
